package com.tms.operation.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.tms.operation.mapper.TmsDrawMapper;
import com.tms.operation.domain.TmsDraw;
import com.tms.operation.service.ITmsDrawService;

/**
 * 到站Service业务层处理
 *
 * @author ruoyi
 * @date 2024-10-28
 */
@Service
public class TmsDrawServiceImpl implements ITmsDrawService
{
    @Autowired
    private TmsDrawMapper tmsDrawMapper;

    /**
     * 查询到站
     *
     * @param id 到站主键
     * @return 到站
     */
    @Override
    public TmsDraw selectTmsDrawById(Long id)
    {
        return tmsDrawMapper.selectTmsDrawById(id);
    }

    /**
     * 查询到站列表
     *
     * @param tmsDraw 到站
     * @return 到站
     */
    @Override
    public List<TmsDraw> selectTmsDrawList(TmsDraw tmsDraw)
    {
        return tmsDrawMapper.selectTmsDrawList(tmsDraw);
    }

    /**
     * 新增到站
     *
     * @param tmsDraw 到站
     * @return 结果
     */
    @Override
    public int insertTmsDraw(TmsDraw tmsDraw)
    {
        return tmsDrawMapper.insertTmsDraw(tmsDraw);
    }

    /**
     * 修改到站
     *
     * @param tmsDraw 到站
     * @return 结果
     */
    @Override
    public int updateTmsDraw(TmsDraw tmsDraw)
    {
        return tmsDrawMapper.updateTmsDraw(tmsDraw);
    }

    /**
     * 批量删除到站
     *
     * @param ids 需要删除的到站主键
     * @return 结果
     */
    @Override
    public int deleteTmsDrawByIds(Long[] ids)
    {
        return tmsDrawMapper.deleteTmsDrawByIds(ids);
    }

    /**
     * 删除到站信息
     *
     * @param id 到站主键
     * @return 结果
     */
    @Override
    public int deleteTmsDrawById(Long id)
    {
        return tmsDrawMapper.deleteTmsDrawById(id);
    }

    @Override
    public List<TmsDraw> countdraw() {
        return tmsDrawMapper.countdraw();
    }

    @Override
    public List<TmsDraw> exceptDraw() {
        return tmsDrawMapper.exceptDraw();
    }
}
